doctype html
html
    head
        link(rel='stylesheet', href='/stylesheets/style.css')
    body
        script(type='text/javascript').
            function showTable(server, tablename) {
              document.location.href='/selectTable_guild/' + server + '&' + tablename;
            }

        div(class="Title") #{type} Table List

        br
        button(onclick="location.href='/'") home
        br

        //table.table.table-striped.table-bordered.table-condensed
        table(border="1")
            thead
                each field in fields
                    th= field.name
            tbody
                each row in rows
                    tr
                        each value, key in row
                            if (key !== 'parse' && key !== '_typeCast')
                                td= key
                                if (value != 'info_character' && value != 'info_login' && value != 'info_social' && value != 'info_user' && value != 'web_admin' && value != 'web_admin_old')
                                    td
                                        a(href="javascript:showTable('#{server}', '#{value}')") #{value}
                                else
                                    td= value



        button(onclick="location.href='/'") home